<%--
  Created by IntelliJ IDEA.
  User: ICONIC
  Date: 2021/4/20
  Time: 0:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>充值页面</title>
    <!-- layUI的核心CSS文件 -->
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/css/layui.css"/>
    <!-- layUI的核心JS文件 -->
    <script src="${pageContext.request.contextPath}/static/layui-v2.5.7/layui/layui.js" type="text/javascript"
            charset="UTF-8"></script>
    <style>
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
        }
        input[type="number"]{
            -moz-appearance: textfield;
        }
    </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
<div class="layui-header">
        <div class="layui-logo"><a style="color: #009688;">龙洞闲置购物系统</a></div>

    <!-- 头部区域（可配合layui已有的水平导航） -->

    <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item">
            <a href="ShowALLGoods">首页</a>
        </li>
        <li class="layui-nav-item">
            <a href="javascript:;">充值页</a>

        </li>
        <script type="text/javascript">
            layui.use('form', function () {
                var form = layui.form;
                form.on('submit(search)', function (data) {
                    console.log(data);
                    return false;
                });
            });
        </script>
    </ul>
    <%@include file="../common/head.jsp"%>
</div>
</div>
<div class="layui-row" style="margin-top: 100px;">
    <div class="layui-col-md-offset3 layui-col-md6" style="border: 1px solid gray; padding: 20px;margin-bottom: 20px;">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>余额充值</legend>
        </fieldset>
<form class="layui-form layui-form-pane" action="updatebal" method="post">
<%--    隐藏表单--%>
    <input type="hidden" name="uid" value="${user.uid}">
    <input type="hidden" name="uname" value="${user.uname}">


    <div class="layui-form-item" style="margin:15px;">
        <label class="layui-form-label">充值金额</label>
        <div class="layui-input-block">
             <input class="layui-input" type="number" name="ubalance"
                    oninput = "value=value.replace(/[^\d]/g,'')">
        </div>
    </div>
    <div class="layui-col-lg-offset3 layui-col-md10" style="margin-top:10px;">
    <div class="layui-input-block">
        <button class="layui-btn" lay-submit>充值</button>
    </div>
    </div>
</form>
</div>
</div>
    <script>
        //JavaScript代码区域
        layui.use('element', function () {
            var element = layui.element;
        });
    </script>

</body>
</html>
